package com.wut.clock.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 资源菜单
 * </p>
 *
 * @author 
 * @since 2022-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysMenu对象", description="资源菜单")
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键;主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "菜单名;菜单名")
    private String name;

    @ApiModelProperty(value = "父类id;父类id(0表示为最高级)")
    private Integer parentId;

    @ApiModelProperty(value = "显示顺序;显示顺序")
    private Integer sort;

    @ApiModelProperty(value = "路由地址;路由地址")
    private String path;

    @ApiModelProperty(value = "权限标识;权限标识")
    private String perms;

    @ApiModelProperty(value = "菜单图标;菜单图标")
    private String icon;

    @ApiModelProperty(value = "是否缓存;是否缓存")
    private Integer isCache;

    @ApiModelProperty(value = "是否外链;是否外链")
    private Integer isFrame;

    @ApiModelProperty(value = "菜单状态;菜单状态")
    private Integer status;

    @ApiModelProperty(value = "菜单类型;菜单类型 0:目录 1：菜单 2：按钮")
    private Integer type;

    @ApiModelProperty(value = "备注;备注")
    private String remark;

    @ApiModelProperty(value = "创建时间;创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间;更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除;逻辑删除")
    @TableLogic
    private Integer deleted;


}
